package com.example.tests;

import org.testng.annotations.Test;

public class GroupTest extends TestBase{
	
  @Test
  public void createNoneEmptyGroup() throws Exception {
	app.navigationHelper.gotoHomePage();
    app.navigationHelper.gotoGroupsPage();
    app.groupHelper.initGroupCreation();
    GroupData group = new GroupData();
	group.groupName = "Group 1";
    group.header = "Header 1";
    group.footer = "Footer 1";
    app.groupHelper.fillGroupForm(app, this, group);
    app.groupHelper.submitGroupCreation();
    app.navigationHelper.gotoGroupsPage();
  }
  
  @Test
  public void createEmptyGroup() throws Exception {
	app.navigationHelper.gotoHomePage();
    app.navigationHelper.gotoGroupsPage();
    app.groupHelper.initGroupCreation();
    app.groupHelper.fillGroupForm(app, this, new GroupData());
    app.groupHelper.submitGroupCreation();
    app.navigationHelper.gotoGroupsPage();
  }
}
